//
//  RecommCell.m
//  A段项目,漫画
//
//  Created by dlios on 15-4-29.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RecommCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation RecommCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.posterView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
        self.posterView.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:self.posterView];
        [_posterView release];
        
        self.lastupLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 380, WIDTH - 20, 40)];
        //        self.lastupLabel.backgroundColor = [UIColor whiteColor];
        self.lastupLabel.textColor = [UIColor cyanColor];
        [self.contentView addSubview:self.lastupLabel];
        [_lastupLabel release];
        
        self.titleLable = [[UILabel alloc]initWithFrame:CGRectMake(20, 340, WIDTH - 20, 40)];
        
        self.titleLable.textColor = [UIColor cyanColor];
        [self.contentView addSubview:self.titleLable];
        [_titleLable release];
        
        self.briefLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 420, WIDTH - 20, 40)];
        self.briefLabel.textColor = [UIColor cyanColor];
        [self.contentView addSubview:self.briefLabel];
        [_briefLabel release];
        
    }
    return self;
}

- (void)dealloc
{
    [_briefLabel release];
    [_titleLable release];
    [_lastupLabel release];
    [_posterView release];
    [super dealloc];
}
@end
